package com.cloud.phone.task.bean;

import com.blankj.utilcode.util.GsonUtils;
import com.blankj.utilcode.util.SPUtils;
import com.cloud.phone.tools.MyUtils;

import java.util.ArrayList;
import java.util.List;

public class ServerTaskDataBean extends BaseTaskBean{
    private Integer attention;
    private Integer fans;
    private Integer like;
    private String profile;
    String id;
    String phoneId;
    String cpPhoneId;
    String avatar;
    String mainId;
    private String accountId;//需要注册的账号id
    private String password;//需要注册的账号密码
    String dealWithUserName;//需要关注的用户名
    long minInterval;//私信最小间隔时间
    long maxInterval;//私信最大间隔时间
    int followType;//主动私信用户类型 用户、用户粉丝
    String followAccount;//需要获取粉丝列表的用户名
    int maxFollowCount;//最大获取粉丝数量
    String accountWithUserName;//需要执行任务的用户名
    List<String> searchKeywords;//关键字养号时用的关键字
    List<String> msgList;//话术列表
    List<ChatMsgList> beAttentionReplayBeans;
    ChatMsgList chatWithOtherMsgList;//主动私信的话术列表
    String introduction;//修改资料-简介
    String nickName;//修改资料-昵称
    String fileDirName;//文件夹的地址---任何需要文件操作的任务，任务类型都对应唯一的文件夹和唯一的文件，任务完成后需要做删除处理
    String publishTitle;//发布视频输入的标题
    String videoLink;//需要操作点赞、评论的视频链接
    String commentText;//需要进行评论的内容
    long duration=5;//执行某个操作的持续时间(单位分钟)
    long waitTime;//操作完成后等待时间
    int likePercent=20;//养号时点赞的概率
    int attentionPercent=10;//养号时关注的概率
    int commentPercent=5;//养号时评论的概率

    public Integer getAttention() {
        return attention;
    }

    public void setAttention(Integer attention) {
        this.attention = attention;
    }

    public Integer getFans() {
        return fans;
    }

    public void setFans(Integer fans) {
        this.fans = fans;
    }

    public Integer getLike() {
        return like;
    }

    public void setLike(Integer like) {
        this.like = like;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getMsgList() {
        return msgList;
    }

    public void setMsgList(List<String> msgList) {
        this.msgList = msgList;
    }

    public int getMaxFollowCount() {
        return maxFollowCount;
    }

    public void setMaxFollowCount(int maxFollowCount) {
        this.maxFollowCount = maxFollowCount;
    }

    public String getFollowAccount() {
        return followAccount;
    }

    public void setFollowAccount(String followAccount) {
        this.followAccount = followAccount;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public long getMinInterval() {
        return minInterval;
    }

    public void setMinInterval(long minInterval) {
        this.minInterval = minInterval;
    }

    public long getMaxInterval() {
        return maxInterval;
    }

    public void setMaxInterval(long maxInterval) {
        this.maxInterval = maxInterval;
    }

    public ChatMsgList getChatWithOtherMsgList() {
        return chatWithOtherMsgList;
    }

    public void setChatWithOtherMsgList(ChatMsgList chatWithOtherMsgList) {
        this.chatWithOtherMsgList = chatWithOtherMsgList;
    }

    public int getFollowType() {
        return followType;
    }

    public void setFollowType(int followType) {
        this.followType = followType;
    }

    public List<ChatMsgList> getBeAttentionReplayBeans() {
        String beAttentionChatBeanStr = SPUtils.getInstance().getString(BeAttentionChatBean.class.getSimpleName());
        if(MyUtils.isEmpty(beAttentionChatBeanStr)){
            return null;
        }
        BeAttentionChatBean serverTaskInnerBean= GsonUtils.fromJson(beAttentionChatBeanStr,BeAttentionChatBean.class);
        beAttentionReplayBeans=serverTaskInnerBean.getBeAttentionChatListBeans();
        return beAttentionReplayBeans;
    }


    public List<ChatMsgList> mockBeAttentionChatData(){
        ChatMsgList bean1=new ChatMsgList();
        ChatMsgList bean2=new ChatMsgList();
        List<String> datas=new ArrayList<>();
        datas.add("你好");
        datas.add("你好啊啊");
        datas.add("你好哈哈");
        datas.add("号");
        bean1.setPrivateMsgList(datas);
        bean2.setPrivateMsgList(datas);
        bean1.setAccount("infamous.belle1152");
        bean2.setAccount("yin.d27");
        beAttentionReplayBeans=new ArrayList<>();
        beAttentionReplayBeans.add(bean1);
        beAttentionReplayBeans.add(bean2);
        return beAttentionReplayBeans;
    }


    public long getWaitTime() {
        return waitTime;
    }

    public void setWaitTime(long waitTime) {
        this.waitTime = waitTime;
    }

    public void setBeAttentionReplayBeans(List<ChatMsgList> beAttentionReplayBeans) {
        this.beAttentionReplayBeans = beAttentionReplayBeans;
    }

    public String getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(String phoneId) {
        this.phoneId = phoneId;
    }

    public String getCpPhoneId() {
        return cpPhoneId;
    }

    public void setCpPhoneId(String cpPhoneId) {
        this.cpPhoneId = cpPhoneId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }



    public String getAccountWithUserName() {
        return accountWithUserName;
    }

    public void setAccountWithUserName(String accountWithUserName) {
        this.accountWithUserName = accountWithUserName;
    }



    public String getPublishTitle() {
        return publishTitle;
    }

    public void setPublishTitle(String publishTitle) {
        this.publishTitle = publishTitle;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getFileDirName() {
        return fileDirName;
    }

    public void setFileDirName(String fileDirName) {
        this.fileDirName = fileDirName;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public int getLikePercent() {
        return likePercent;
    }

    public void setLikePercent(int likePercent) {
        this.likePercent = likePercent;
    }

    public int getAttentionPercent() {
        return attentionPercent;
    }

    public void setAttentionPercent(int attentionPercent) {
        this.attentionPercent = attentionPercent;
    }

    public int getCommentPercent() {
        return commentPercent;
    }

    public void setCommentPercent(int commentPercent) {
        this.commentPercent = commentPercent;
    }

    public String getVideoLink() {
        return videoLink;
    }

    public void setVideoLink(String videoLink) {
        this.videoLink = videoLink;
    }

    public String getDealWithUserName() {
        return dealWithUserName;
    }

    public void setDealWithUserName(String dealWithUserName) {
        this.dealWithUserName = dealWithUserName;
    }

    public List<String> getSearchKeywords() {
        return searchKeywords;
    }

    public void setSearchKeywords(List<String> searchKeywords) {
        this.searchKeywords = searchKeywords;
    }

    @Override
    public String toString() {
        return "ServerTaskDataBean{" +
                "id='" + id + '\'' +
                ", phoneId='" + phoneId + '\'' +
                ", cpPhoneId='" + cpPhoneId + '\'' +
                ", mainId='" + mainId + '\'' +
                ", dealWithUserName='" + dealWithUserName + '\'' +
                ", accountWithUserName='" + accountWithUserName + '\'' +
                ", searchKeywords=" + searchKeywords +
                ", beAttentionReplayBeans=" + beAttentionReplayBeans +
                ", signText='" + introduction + '\'' +
                ", nickName='" + nickName + '\'' +
                ", fileDirName='" + fileDirName + '\'' +
                ", publishTitle='" + publishTitle + '\'' +
                ", videoLink='" + videoLink + '\'' +
                ", commentText='" + commentText + '\'' +
                ", duration=" + duration +
                ", likePercent=" + likePercent +
                ", attentionPercent=" + attentionPercent +
                ", commentPercent=" + commentPercent +
                '}';
    }
}
